#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
主题: 返回多个值的函数
问题: 你希望构造一个可以返回多个值的函数
提示 : 
"""

def recipe1():
    add = lambda x, y: x + y
    print(f"{add(2, 3) = }")
    print(f"{add('hello', 'world') = }")

def recipe2():
    names = ['David Beazley', 'Brian Jones',
         'Raymond Hettinger', 'Ned Batchelder']
    print(f"{sorted(names, key=lambda name: name.split()[-1].lower()) = }")

def main():
    print('recipe1'.center(20, '*'))
    recipe1()
    print('recipe2'.center(20, '*'))
    recipe2()

if __name__ == '__main__':
    main()       